home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
MOVIES
/
MIAWS
/
_NAV.DIR
/
00004_Script_nb
< prev
next >
Wrap
Text File
|
1995-11-13
|
1KB
|
61 lines
-- standard quickDraw button behavior
--ancestor to navigation button trios [sbt]
--property myChannel, myScript
--
--on birth me, sp,sc
-- set myChannel to integer(sp)
-- set myScript to sc
-- return me
--end
--change appearance
on nbnorm theLine
global gNbNormalValue, gNormChan
--put ">>>_NAV nbnorm" && theLine
set gNormChan = 0
set myChannel = integer(item 4 of theLine)
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to gNbNormalValue
updateStage
puppetSprite myChannel, false
end
on nbrollo myChannel, dummy
global gNbNormalValue, gNormChan
--put ">>>_NAV nbrollo" && myChannel
if myChannel = gNormChan then exit
set gNormChan = myChannel
set gNbNormalValue = the castNum of sprite myChannel
--put ">>> Setting the castNum to: " & gNbNormalValue+1
-- note, we should sub-class the title bar... to instead change the cursor
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to (gNbNormalValue+1)
updateStage
-- puppetSprite myChannel, false
end
on nbpress theLine
global gNbNormalValue, gNormChan
set myChannel = integer(item 4 of theLine)
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to gNbNormalValue+2
updateStage
puppetSprite myChannel, false
end
on nbdoScript theLine
do item 7 of theLine
end